#ifndef MSEAT_H
#define MSEAT_H

#include <QGraphicsWidget>
#include <QImage>

#include "mcounter.h"

class MSeat : public QGraphicsWidget
{
    Q_OBJECT
public:
    explicit MSeat(QGraphicsItem *parent = 0);

    virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);

    // change the number of rest hand cards
    void updateCounter(int num);

    // should be called when start a new game
    void reset();

    // set the seat image to be evil if is_evil, vice versa
    void setEvil(bool is_evil);

    // set a player to start his turn
    void setCurrent(bool is_current);
    
signals:
    
public slots:

private:
    bool evil, unknow, current;
    MCounter *counter;

    static QImage img_evil, img_unknow, img_player;
};

#endif // MSEAT_H
